CFLAGS:=
LDFLAGS:= -ltag
CXX:= g++
PROG:= id3-extract-cover

SRCS:= main.cpp

all: $(PROG)

$(PROG): $(SRCS)
	$(CXX) -Wall -Wextra -std=c++14 -pedantic -g $(SRCS) -o $(PROG) $(LDFLAGS)

install: all
	@echo installing executable file to ${DESTDIR}${PREFIX}/bin
	@mkdir -p ${DESTDIR}${PREFIX}/bin
	@cp -f ${PROG} ${DESTDIR}${PREFIX}/bin
	@chmod 755 ${DESTDIR}${PREFIX}/bin/${PROG}

uninstall:
	@echo removing executable file from ${DESTDIR}${PREFIX}/bin
	@rm -f ${DESTDIR}${PREFIX}/bin/${PROG}

clean:
	rm -f $(PROG)